<div class="module module-radio" id="module-radio"
     @if(!(!isSet($item->type) || (isSet($item->type) && $item->type == 27))) style="display: none" @endif >
    @if(isset($item))
    <?php $optionContent = trim(trim($item->option)," |")?>
    <?php $optionContent = explode('|', $optionContent) ?>
    @else

    @endif
    <div class="form-group">
        <label for="password_confirmation" class="col-sm-2 control-label" style="line-height: 10px">
            <input class="module-radio radio-a @if(isSet($item->answer) && $item->answer =='A') checked @endif "
                   type="radio" name="radio" value="A" @if(isSet($item->answer) && $item->answer =='A') checked @endif >
        </label>

        <div class="col-sm-10">
            <input type="text" class="form-control" name="radioOption[]"
                   value="{{isSet($optionContent[0])?$optionContent[0]:""}}">
        </div>
    </div>
    <div class="form-group">
        <label for="password_confirmation" class="col-sm-2 control-label">
            <input class="module-radio radio-b @if(isSet($item->answer) && $item->answer =='B') checked @endif"
                   type="radio" name="radio" value="B" @if(isSet($item->answer) && $item->answer =='B') checked @endif>
        </label>

        <div class="col-sm-10">
            <input type="text" class="form-control" name="radioOption[]"
                   value="{{isSet($optionContent[1])?$optionContent[1]:""}}">
        </div>

    </div>
    <div class="form-group">
        <label for="password_confirmation" class="col-sm-2 control-label">
            <input type="radio"
                   class="module-radio radio-c @if(isSet($item->answer) && $item->answer =='C') checked @endif"
                   name="radio" value="C" @if(isSet($item->answer) && $item->answer =='C') checked @endif>
        </label>

        <div class="col-sm-10">
            <input type="text" class="form-control" name="radioOption[]"
                   value="{{isSet($optionContent[2])?$optionContent[2]:""}}">
        </div>
    </div>
    <div class="form-group">
        <label for="password_confirmation" class="col-sm-2 control-label">
            <input type="radio" name="radio" value="D"
                   class="module-radio radio-d @if(isSet($item->answer) && $item->answer =='D') checked @endif"
                   @if(isSet($item->answer) && $item->answer =='D') checked @endif>
        </label>

        <div class="col-sm-10">
            <input type="text" class="form-control" name="radioOption[]"
                   value="{{isSet($optionContent[3])?$optionContent[3]:""}}">
        </div>
    </div>
</div>